<div class="selfCount">
  <nz-collapseset>
    <nz-collapse [nzTitle]="panels.name" [nzActive]="panels.active" [nzDisabled]="panels.disabled">
      <form nz-form [nzLayout]="'inline'">
        <div nz-form-item nz-col [nzSpan]="20" [nzSm]="20" [nzXs]="20">
          <div nz-form-label nz-col [nzSm]="8" [nzXs]="8">
            <label>查询语句</label>
          </div>
          <div nz-form-control nz-col [nzSm]="12" [nzXs]="12">
            <nz-input style="width:400px;" [(ngModel)]="sqlstring" name="sqlstring" nzType="textarea" [nzAutosize]="autosize"
              nzPlaceHolder="请输入查询语句"></nz-input>

          </div>
        </div>
        <button nz-button [nzSize]="'large'" [nzType]="'primary'" (click)="query()">查询</button>
      </form>
    </nz-collapse>
  </nz-collapseset>

  <nz-table style="margin: 20px !important" #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false"
    (nzDataChange)="displayDataChange($event)">
    <thead nz-thead>
      <tr>
        <th nz-th *ngFor="let title of titleList">
          <span>{{title}}</span>
        </th>
      </tr>
    </thead>
    <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let datalist of list">
        <td nz-td *ngFor="let data of datalist">{{data}}</td>
      </tr>
    </tbody>
  </nz-table>

  <!-- <nz-pagination [nzPageIndex]="userBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger
    (nzPageSizeChange)="nzPageSizeChange($event)" (nzPageIndexChange)="nzPageIndexChange($event)"
    (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="userBean.pageSize"></nz-pagination> -->

  <!--添加页面 -->
  <ng-template #title>
    <span>{{modelTitle}}</span>
  </ng-template>
  <ng-template #content>
    <user-add-page *ngIf="modal==0" (outPut)="addOutPut($event)"></user-add-page>
    <user-modify-page *ngIf="modal==1" [inValue]="updateData" (outPut)="addOutPut($event)"></user-modify-page>
  </ng-template>
  <ng-template #footer>
    <div>
    </div>
  </ng-template>

  <ng-template #titleP>
    <span>用户转移</span>
  </ng-template>
  <ng-template #contentP>
    <form nz-form>
      <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSpan]="9">
          <label for="roleTypeId">转移给</label>
        </div>
        <div nz-form-control nz-col [nzSpan]="8">
          <nz-select nzAllowClear name="toParty" [nzPlaceHolder]="'请选择单位'" [nzShowSearch]="true" formControlName="toParty"
            [nzSize]="'large'" [(ngModel)]="toParty" name="toParty">
            <nz-option *ngFor="let item of partySeleList" [nzLabel]="item.partyName" [nzValue]="item.id"></nz-option>
          </nz-select>

        </div>
      </div>
      <div nz-form-item nz-row style="margin-bottom:8px;">
        <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="10">
          <button nz-button (click)="updateUserParty()" [nzSize]="'large'" [nzType]="'primary'">确定</button>
        </div>
      </div>

    </form>

  </ng-template>
  <ng-template #footerP>
    <div>
    </div>
  </ng-template>

  <ng-template #titleUpload>
    <span>导入</span>
  </ng-template>
  <ng-template #contentUpload>
    <div>
      导入用户信息：
      <nz-upload nzAction="{{config.IP+config.API.uploadUser}}" [nzData]="upLoadParam" (nzChange)="uploadChage($event)"
        [nzShowUploadList]="false">
        <button nz-button>
          <i class="anticon anticon-upload"></i>
          <span>导入</span>
        </button>
      </nz-upload>
    </div>
  </ng-template>
  <ng-template #footerUpload>
    <div>
    </div>
  </ng-template>
</div>
